<template>
	<view class="content">
		<u-cell-group>
			<u-cell-item
				v-for="(item, index) in cellGroups"
				:title="item.title"
				:key="item.id"
				@click="gotoPages(item.path)"
			></u-cell-item>
		</u-cell-group>
	</view>
</template>

<script>
export default {
	data() {
		return {
			cellGroups: [
				{
					id: 0,
					title: '瀑布流',
					path: '/pages/waterfull/waterfull'
				},
				{
					id: 1,
					title: '红包雨',
					path: '/pages/redPacketRain/redPacketRain'
				},
				{
					id: 2,
					title: '开屏红包',
					path: '/pages/openRedpacket/openRedpacket'
				},
				{
					id: 3,
					title: '转盘抽奖',
					path: '/pages/activityCircle/draw'
				},
				{
					id: 4,
					title: '九宫格抽奖',
					path: '/pages/activitySquare/activitySquare'
				}
			]
		};
	},
	onLoad() {},
	methods: {
		gotoPages(path) {
			console.log(path)
			uni.navigateTo({
				url: path
			});
		}
	}
};
</script>

<style></style>
